package com.xneure.enging.ui.element.menu;

import com.xneure.enging.ui.UiElement;
import com.xneure.utils.bean.GUID;

public class UiMenuItem extends UiElement {
	private GUID menuId;
	private String title;

	public UiMenuItem(UiElement par) {
		super(par);
		setProperty("class", "menuItem");
		if (par instanceof UiMenu) {
			menuId = ((UiMenu) par).getId();
		} else if (par instanceof UiMenuItem) {
			menuId = ((UiMenuItem) par).menuId;
		} else {

		}
	}

	public GUID getMenuId() {
		return menuId;
	}
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
